//
//  LogicCalculatorViewController.h
//  LogicCalculator
//
//  Created by Francisco Gindre on 4/25/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LogicCalculator.h"

@interface LogicCalculatorViewController : UIViewController {
	UIButton * pButton;
	UIButton * qButton;
	UIButton * rButton;
	UIButton * andButton;
	UIButton * orButton;
	UIButton * xorButton;
	UIButton * notButton;
	UIButton * thenButton;
	UIButton * doubleThenButton;
	
	UIButton * leftBracketButton;
	UIButton * rightBracketButton;
	UIButton * enterButton;
	UIButton * clearButton;
	UIButton * deleteButton;
	
	UISwitch * pSwitch;
	UISwitch * qSwitch;
	UISwitch * rSwitch;
	
	UITextField *resultField;
	
	UIImageView * checkImage;

	UIImage *tickImage;
	UIImage *errorImage;
	LogicCalculator* calculator;
	

}
@property (nonatomic,retain) IBOutlet UIButton *pButton;
@property (nonatomic,retain) IBOutlet UIButton *qButton;
@property (nonatomic,retain) IBOutlet UIButton *rButton;
@property (nonatomic,retain) IBOutlet UIButton *andButton;
@property (nonatomic,retain) IBOutlet UIButton *orButton;
@property (nonatomic,retain) IBOutlet UIButton *xorButton;
@property (nonatomic,retain) IBOutlet UIButton *notButton;
@property (nonatomic,retain) IBOutlet UIButton *thenButton;
@property (nonatomic,retain) IBOutlet UIButton *doubleThenButton;

@property (nonatomic,retain) IBOutlet UIButton *leftBracketButton;
@property (nonatomic,retain) IBOutlet UIButton *rightBracketButton;
@property (nonatomic,retain) IBOutlet UIButton *enterButton;
@property (nonatomic,retain) IBOutlet UIButton *clearButton;
@property (nonatomic,retain) IBOutlet UIButton *deleteButton;

@property (nonatomic,retain) IBOutlet UISwitch *qSwitch;
@property (nonatomic,retain) IBOutlet UISwitch *pSwitch;
@property (nonatomic,retain) IBOutlet UISwitch *rSwitch;

@property (nonatomic,retain) IBOutlet UITextField *resultField;
@property (nonatomic,retain) IBOutlet UIImageView * checkImage;
@property (nonatomic, retain) UIImage * tickImage;
@property (nonatomic,  retain) UIImage *errorImage;

@property (nonatomic,retain) LogicCalculator *calculator;

-(IBAction)qButtonPressed:(id)sender;
-(IBAction)pButtonPressed:(id)sender;
-(IBAction)rButtonPressed:(id)sender;
-(IBAction)andButtonPressed:(id)sender;
-(IBAction)orButtonPressed:(id)sender;
-(IBAction)xorButtonPressed:(id)sender;
-(IBAction)notButtonPressed:(id)sender;
-(IBAction)thenButtonPressed:(id)sender;
-(IBAction)doubleThenButtonPressed:(id)sender;

-(IBAction)leftBracketButtonPressed:(id)sender;
-(IBAction)rightBracketButtonPressed:(id)sender;
-(IBAction)enterButtonPressed:(id)sender;
-(IBAction)clearButtonPressed:(id)sender;
-(IBAction)deleteButtonPressed:(id)sender;

-(IBAction)qSwitchChanged:(id)sender;
-(IBAction)pSwitchChanged:(id)sender;
-(IBAction)rSwitchChanged:(id)sender;


@end

